<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
	<!--html提供了一个标签，script-->
	<script>
		//预解析,过程会把变量声明提到最前面，然后再开始执行代码，赋的初始值不会被一同提升
		console.log(a);
		var a = 100;
		
		//不写var的情况并且有赋值，JS会默默的帮我去声明！！！变成全局
		d = 200;
		console.log(d);
	</script>
 </head>
 <body>
  
 </body>
</html>
